home *** CD-ROM | disk | FTP | other *** search
- function WSsliderButton()
- {
- this.init();
- }
- WSsliderButton.prototype = new MovieClip();
- Object.registerClass("WSsliderButton",WSsliderButton);
- sb = WSsliderButton.prototype;
- sb.init = function()
- {
- var _loc1_ = this;
- _loc1_._x = _loc1_._parent.min0;
- _loc1_.txt = 1;
- _loc1_.minX = _loc1_._parent.bg._x;
- _loc1_.maxX = _loc1_.minX + _loc1_._parent.bg._width;
- _loc1_.minY = _loc1_.maxY = _loc1_._parent.bg._y;
- _loc1_.txtFarbe = new Color(_loc1_.txt_over);
- _loc1_.txtFarbe2 = new Color(_loc1_.txt_over2);
- _loc1_.txtFarbeNormal = 26163;
- _loc1_.txtFarbeOver = 10162381;
- };
- sb.onMouseDown = function()
- {
- var _loc1_ = this;
- var _loc3_ = _root._xmouse;
- var _loc2_ = _root._ymouse;
- if(_loc1_._parent.hitTest(_loc3_,_loc2_,false))
- {
- _loc1_.button_bg.gotoAndStop("over");
- _loc1_.txtFarbe.setRGB(_loc1_.txtFarbeOver);
- _loc1_.txtFarbe2.setRGB(_loc1_.txtFarbeOver);
- _loc1_.onEnterFrame = function()
- {
- this._parent.einrasten();
- };
- }
- };
- sb.onMouseUp = function()
- {
- var _loc1_ = this;
- _loc1_.button_bg.gotoAndStop("normal");
- _loc1_.txtFarbe.setRGB(_loc1_.txtFarbeNormal);
- _loc1_.txtFarbe2.setRGB(_loc1_.txtFarbeNormal);
- delete _loc1_.onEnterFrame;
- };
-